package com.etnoe.gis.common.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author 张任豪
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@ApiModel(value = "计算两坐标间的距离")
public class CoordDistance {

    @ApiModelProperty(value = "经度1")
    private double lon1;
    @ApiModelProperty(value = "纬度1")
    private double lat1;
    @ApiModelProperty(value = "经度2")
    private double lon2;
    @ApiModelProperty(value = "纬度2")
    private double lat2;
    @ApiModelProperty(value = "坐标间的距离(单位米)")
    private double distance;
}
